package com.xiaoshuidi.cloud.module.report.dal.DO.report;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@TableName(value = "report_circle_fee", autoResultMap = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ReportCircleFeeDO {

    /**
     * 编号，数据库自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     *合同id
     */
    private Long contractId;
    /**
     * 账单id
     */
    private Long orderId;
    /**
     * 费项名称
     */
    private String feeCode;

    /**
     * 费项名称
     */
    private String feeName;

    /**
     * 金额
     */
    private BigDecimal amount;
    /**
     * 账单开始时间
     */
    private LocalDate startTime;
    /**
     * 账单结束时间
     */
    private LocalDate endTime;
    /**
     * 平均金额
     */
    private BigDecimal averAmount;
    /**
     * 平均金额
     */
    private BigDecimal amountBalance;
}
